﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_ContatList.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_ContatList" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../css/admin.css" rel="stylesheet" />
    <script src="../js/WebCommon.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pan1" />
        <ext:Panel ShowBorder="false" ShowHeader="false" runat="server" ID="pan1" Layout="Fit">
            <Toolbars>
                <ext:Toolbar ID="Toolbar2" runat="server">
                    <Items>
                        <ext:TwinTriggerBox ID="ttbxMyBox2" ShowLabel="false" OnTrigger1Click="ttbxMyBox2_Trigger1Click"
                            OnTrigger2Click="ttbxMyBox2_Trigger2Click" Trigger1Icon="Clear" ShowTrigger1="False"
                            EmptyText="请输入合同编号、项目合同描述或客户编号" Trigger2Icon="Search" runat="server" Width="280px">
                        </ext:TwinTriggerBox>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Grid ID="Grid1" Title="项目合同管理" OnRowSelect="Grid1_RowSelect" EnableRowSelect="true" ShowHeader="false" ShowBorder="false" runat="server" EnableCheckBoxSelect="true" DataKeyNames="ID,IsFinsh"
                    OnRowDataBound="Grid1_RowDataBound" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClick="true" OnRowDoubleClick="Grid1_RowDoubleClick" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <ext:Button ID="btnNew" Text="添加" Icon="Add" EnablePostBack="false" runat="server">
                                </ext:Button>
                                <ext:Button ID="Button1" Text="修改" OnClick="Button1_Click" Icon="ApplicationEdit" runat="server">
                                </ext:Button>
                                <ext:Button ID="btnView" Text="查看" OnClick="btnView_Click" Icon="ApplicationViewDetail" runat="server"></ext:Button>
                                <ext:Button ID="Button2" Text="删除" OnClick="Button2_Click" Icon="Delete" runat="server" ConfirmText="您确定要这么做吗？">
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="btnMoney" runat="server" EnablePostBack="false" Icon="Money" Text="收款记录">
                                    <Menu>
                                        <ext:MenuButton ID="btnMoneyAdd" runat="server" OnClick="btnMoneyAdd_Click" Icon="MoneyAdd" Text="新增收款"></ext:MenuButton>
                                        <ext:MenuButton ID="btnMoneyView" runat="server" OnClick="btnMoneyView_Click" IconUrl="~/icon/application-list.png" Text="查看收款记录"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button ID="btnPoData" runat="server" EnablePostBack="false" IconUrl="~/icon/icon-file-down.gif" Text="采购订单">
                                    <Menu>
                                        <ext:MenuButton runat="server" ID="btnPoDataAdd" Icon="Add" Text="创建采购单" OnClick="btnPoDataAdd_Click"></ext:MenuButton>
                                        <ext:MenuButton runat="server" ID="btnPoDataView" OnClick="btnPoDataView_Click" IconUrl="~/icon/application-task.png" Text="查看采购记录"></ext:MenuButton>
                                    </Menu>
                                </ext:Button>

                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:Button runat="server" ID="btnFind" Icon="Find" Text="合同报表查询" OnClick="btnFind_Click"></ext:Button>

                                <ext:ToolbarSeparator></ext:ToolbarSeparator>



                                <ext:ToolbarText ID="ToolbarText2" runat="server" Enabled="false" Text=""></ext:ToolbarText>
                                <ext:ToolbarSeparator></ext:ToolbarSeparator>
                                <ext:ToolbarText ID="ToolbarText1" runat="server" Enabled="false" Text="<span style='color:#999'>双击可编辑数据</span>"></ext:ToolbarText>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Columns>
                        <ext:BoundField Width="100px" DataField="CONNUB" DataFormatString="{0}" HeaderText="合同编号" />
                        <ext:BoundField Width="120px" DataField="AddTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="合同日期" TextAlign="Center" />
                        <ext:BoundField Width="120px" DataField="CONDES" DataFormatString="{0}" HeaderText="合同描述" TextAlign="Center" />
                        <ext:BoundField Width="120px" DataField="PRJNUB" DataFormatString="{0}" HeaderText="项目编号" TextAlign="Center" />
                        <ext:BoundField Width="120px" DataField="CUTNUB" DataFormatString="{0}" HeaderText="客户编号" TextAlign="Center" />
                        <ext:BoundField Width="90px" DataField="AMOUNT" DataFormatString="{0}" HeaderText="合同总金额" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="ID" DataFormatString="{0}" HeaderText="未收金额" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="DLDATE" DataFormatString="{0}" HeaderText="计划交货日期" TextAlign="Center" />
                        <ext:BoundField Width="100px" DataField="PAYMET" DataFormatString="{0}" HeaderText="付款条件" TextAlign="Center" />
                        <ext:CheckBoxField ColumnID="CheckBoxField4" Width="70px" RenderAsStaticField="false"
                            AutoPostBack="true" CommandName="CheckBox1" DataField="IsFinsh" HeaderText="送货状态"
                            ToolTip="是否已经送货完成" TextAlign="Center" />
                        <ext:CheckBoxField Width="100px" DataField="IsFinsh" RenderAsStaticField="true" HeaderText="是否送货完成" TextAlign="Center" />

                    </Columns>
                </ext:Grid>
            </Items>
        </ext:Panel>

        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="520px" Height="490px">
        </ext:Window>
        <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="605px" Height="350px">
        </ext:Window>

       
        <ext:Window ID="Window3" Title="编辑" Popup="false" runat="server"
            CloseAction="HidePostBack" Target="Self" IsModal="false" Width="320px" Height="200px">
            <Toolbars>
                <ext:Toolbar Position="Footer">
                    <Items>
                        <ext:Button runat="server" ID="btn_find" Text="查询" Icon="Find" OnClick="btn_find_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:Panel ShowBorder="false" ShowHeader="false" Height="180px" EnableBackgroundColor="true">
                    <Items>
                        
                        <ext:Panel ID="Panel2" ShowHeader="false" ShowBorder="false"
                            Layout="Column" runat="server" EnableBackgroundColor="true" BodyPadding="10px">
                            <Items>
                                <ext:Label ID="Label2" Text="客户编号：" Width="65px" runat="server" ShowLabel="false">
                                </ext:Label>
                                <ext:TextBox runat="server" ID="txt_CUTNUB" Label="客户编号"></ext:TextBox>
                            </Items>
                        </ext:Panel>


                        <ext:Panel ID="Panel1" ShowHeader="false" ShowBorder="false"
                            Layout="Column" runat="server" EnableBackgroundColor="true" BodyPadding="10px">
                            <Items>
                                <ext:Label ID="Label1" Text="合同日期：" Width="65px" runat="server" ShowLabel="false">
                                </ext:Label>
                                <ext:DatePicker runat="server" Label="开始日期" ID="txt_StartTime" EnableDateSelect="true">
                                </ext:DatePicker>
                                <ext:Label Text="&nbsp;&nbsp;至&nbsp;&nbsp;">
                                </ext:Label>
                                <ext:DatePicker ID="txt_EndTime" Label="结束日期" DateFormatString="yyyy-MM-dd" runat="server"
                                    EnableDateSelect="true">
                                </ext:DatePicker>
                            </Items>
                        </ext:Panel>

                    </Items>
                </ext:Panel>

            </Items>
        </ext:Window>


    </form>
    <script src="../js/extgridbug.js"></script>

</body>
</html>

